<template>
    <div>
        <div class="contianer">
        <button @click="greet($event)">点击我</button>
        <a href="https://baidu.com" @click.prevent="">百度一下</a>
                               
    </div>
        <div @click="clickParent">
            <div @click.stop="clickChild">子节点</div>
        </div>

        <div @click.once="clickChild">只执行一次</div>

        <div @click.capture.self="clickParent">
            <div @click="clickChild">子节点冒泡</div>
        </div>
    </div>
   
</template>
<script>
</script>
<style>
 </style>